package cn.regex.mp.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
@TableName("t_employee")
public class Employee_bak {
    @TableId(value = "id", type = IdType.AUTO)  // type 主键类型
    private Long id;
    @TableField(value = "ename")    // value 表中列名
    private String name;
    private String password;
    private String email;
    private int age;
    private int admin;
    private Long deptId;
    @TableField(exist = false)  // exist 是否为数据库表字段
    private Department dept;
}